home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / ibmchess.zip / CHESS.DOC < prev    next >
Text File  |  1985-08-13  |  14KB  |  237 lines

  1.                               CHESS
  2.         (COMPUTE! Magazine September 1985 by John Krause)
  3.  
  4.      A computer chess game is great for those who can't always find a
  5. human opponent.  But "CHESS" is more than just a substitute for a live
  6. player.  You might call it a "chess processor."  It processes chess
  7. positions as easily as a word processor manipulates text.  It contains
  8. all the features a chess player could ever want.  Its thinking routines
  9. are written entirely in machine language for greater speed, and they
  10. use basic principles of artificial intelligence to simulate an actual
  11. human chess player.
  12.      CHESS consists of two programs.  A BASIC program is used to create
  13. CHESS.BLD which contains the machine language.  To play CHESS, make
  14. sure the CHESS.BLD file is on the disk with CHESS.BAS, then simply load
  15. and run CHESS.BAS.
  16.      After running CHESS, you'll see a title screen for a few seconds
  17. while the computer prepares itself.  Then the board is displayed with
  18. the pieces in their starting positions.  You're in command of the white
  19. pieces versus the computer's black pieces on skill level 1, the easiest
  20. level.  You should see a frame around the square in the lower-left
  21. corner of the board.  This is the cursor which takes the place of your
  22. hand for moving and capturing pieces.
  23.      Use the cursor keys to move the frame cursor atop the piece you
  24. wish to move.  Press and release the Enter key.  Now move the cursor to
  25. the square on which you want to place the piece and hit Enter again.
  26. Your piece moves to the new square, and the computer responds instantly
  27. with a countermove.
  28.      One of the most valuable features of CHESS is that it checks for
  29. illegal moves.  If you try to make an illegal move, the computer buzzes
  30. and keeps your piece on its square.  This feature is not perfect,
  31. however.  It won't catch illegal moves involving castling or en passant
  32. captures.  But it will catch 99 percent of all illegal moves, including
  33. those that put your king in check, as well as the more obvious ones
  34. such as moving a pawn backwards.  If the computer accepts your move,
  35. it's probably legal, but not necessarily so.  If the computer rejects
  36. your move, however, you can be sure that it is illegal.
  37.      If you're a beginner at chess, you'll find the move-checking
  38. feature especially valuable.  Just by trying various moves and noting
  39. which ones the computer accepts, you can get a good idea of the way
  40. each piece can move.
  41.      Information about the current game is displayed at the top of the
  42. screen.  MOVE# indicates the number of the move currently being made,
  43. counting from the start of the game.  In chess, a move by both sides is
  44. considered one move.  So, the move number is changed only after both
  45. sides have moved.
  46.      TO MORE indicates which side has the move.  W means it is white's
  47. turn, and B means it is black's.
  48.      Normally after you move, the computer automatically makes the
  49. next move.  This can be turned off by pressing the T key to switch to
  50. two-player mode.  Now you can play against another person with the
  51. computer acting as referee to check for illegal moves.  To switch back
  52. to one-player mode, press T again.
  53.      You can also let the computer make moves for you by pressing the
  54. M key.  The side that the computer plays depends on whose turn it is.
  55. By repeatedly pressing M, you can watch the computer play itself.
  56.      One of the advantages of a computer opponent over a human is that
  57. you can tell the computer exactly how hard you want it to try to beat
  58. you, and it obediently plays at that level of difficulty.  This is
  59. important because it's no fun if you always love or always win
  60. effortlessly.
  61.      LEVEL shows the current skill level from 1 to 5.  You can change
  62. the level at any time by pressing keys 1-5.  The difference between
  63. levels is the number of moves ahead that the computer looks.  On level
  64. 1, for example, it looks ahead one full move or two half-moves (its
  65. move and your reply).  Each succeeding level looks ahead one more
  66. half-move than the previous level.
  67.      Alas, the smarter play on the higher levels doesn't come without
  68. a price.  The further ahead the computer looks, the move moves it must
  69. examine and, hence, the longer it thinks.  Here's a rundown of the
  70. five levels:
  71.           Level 1:  Beginner.  Thinking time: one second.  Look-ahead:
  72. two half-moves.  Fast but dumb.
  73.           Level 2:  Intermediate.  Thinking time: five seconds.  Look-
  74. ahead: three half-moves.  Provides a reasonable challenge for impatient
  75. players.
  76.           Level 3:  Tournament.  Thinking time: two minutes.  Look-
  77. ahead: four half-moves.  Since the usual time limit for tournament play
  78. is 40 moves in two hours, an average of three minutes per move, this
  79. level is best suited for serious players.
  80.           Level 4:  Mate in two.  Thinking time: 20 minutes.  Look-
  81. ahead: five half-moves.  Capable of solving most mate-in-two problems.
  82.           Level 5:  Postal chess.  Thinking time:  two hours.  Look-
  83. ahead: six half-moves.  Simulates chess by mail where there is no time
  84. limit.  Can avoid checkmate in two moves.
  85.      These thinking times are averages.  The actual thinking time varies
  86. greatly depending on the position.  For example, level 5 takes only five
  87. seconds with just two kings on the board.  Also, these times are for the
  88. PC only.  Since the PCjr runs at about two-thirds the speed of the PC,
  89. the thinking times for the PCjr are greater than the values shown above.
  90.      It happens to everyone.  It's inevitable.  You've played for an
  91. hour, somehow managing to maneuver into a superior positions in what
  92. you consider to be the best game of your life, only to throw it all
  93. away in a single, spectacular blunder.
  94.      Don't panic.  You can take back the last half-move by pressing the
  95. B key.  If you're in one-player mode, you need to press B again to take
  96. back your move and the computer's reply.  In fact, you can press B
  97. repeatedly to take back several moves until you reach the starting
  98. position.  This is possible because the computer records every move
  99. made in the game.
  100.      Another use for this feature is to allow the computer to suggest
  101. a move for you.  If you don't have a good idea of where to move next,
  102. press M and the computer will move for you.  If you like that move,
  103. press M again to continue with the computer's next move.  But if you
  104. think you've found a better move, press B to take back the suggested
  105. move and make your own move.
  106.      Pressing the F key does the opposite of B.  It moves forward
  107. through the move list up to the most advanced position.  Note that
  108. every time a new move is made, the resulting position becomes the most
  109. advanced.  So if you use B to backtrack to a previous position, and
  110. then make a new move, all subsequent stored moves are erased because
  111. they are no longer relevant.
  112.      If you have a printer, you can print the move list by pressing the
  113. P key.  The list appears in three columns: the move numbers, white's
  114. moves, and black's moves.  Each move is indicated by the square the
  115. piece moved from followed by the square it moved to.  Each square is
  116. specified by its coordinates according to the numbers along the left
  117. side of the board and the letters along the bottom.
  118.      You can also dump the screen image to the printer to get a hardcopy
  119. of a particularly interesting position.  Before loading BASIC from DOS,
  120. type GRAPHICS with the DOS master disk in the drive.  Then run CHESS and
  121. press Shift-PrtSc (Fn-PrtSc on the PCjr) whenever you want to print the
  122. position.
  123.      The computer thinks by analyzing thousands of possible moves and
  124. countermoves and choosing what it considers to be the best move based 
  125. on the relative value of pieces.  Most positions don't have just one
  126. best move but several which are equally good, in which case the computer
  127. chooses among them at random.  This random factor insures that every
  128. game will be different, and makes for varied and interesting play.
  129.      The computer announces checkmate when it occurs.  However, there
  130. are a few quirks in the way the computer evaluates a checkmate.  On
  131. levels 3-5, it announces checkmate prematurely.  When this happens, the
  132. computer has determined that it's impossible to avoid checkmate on the
  133. next move or two -- assuming both sides make the best moves.
  134.      Also, the computer doesn't know the subtle difference between
  135. checkmate and stalemate.  Consequently, when a game is stalemated, the
  136. computer announces checkmate even though the game is a draw.  Since the
  137. computer tries as hard as it can to checkmate its opponent, it also
  138. tries to achieve stalemate, possibly by forcing a draw when it could
  139. have won.  Fortunately, this rarely happens, because a stalemate
  140. requires unusual circumstances, such as when one side has only the
  141. king remaining.
  142.      You can start a new game at any time by pressing the N key.  This
  143. sets up the pieces in the starting position with white on the bottom.
  144. If you want to play the black pieces, you can press the I key to invert
  145. the board, so you still play from the bottom.  As with the N command,
  146. the board is reset to the starting position.  However, the N and I
  147. commands retain the move list from the previous game.  This allows you
  148. to replay the game using the F command.  When replaying a game, be sure
  149. to reset the board by pressing I if the game was played in the inverted
  150. mode, or N if normal mode was used.
  151.      You don't have to begin a game from the starting position.  You can
  152. set up any position and begin playing from that point.  If you want, you
  153. can first clear the board by pressing the C key.  To add a piece or
  154. change a piece to a different one, move the cursor to the appropriate
  155. square, hold down either Shift or Ctrl, and press P, N, B, R, Q, or K
  156. for pawn, knight, bishop, rook, queen, or king, respectively.  Holding
  157. down Shift adds one of the lower player's pieces, and Ctrl adds one of
  158. the upper player's pieces.  (Just remember that Ctrl is above Shift on
  159. the keyboard.)  A piece can be removed from the board by pressing the
  160. space bar.  Note that these changes are not stored on the move list.
  161.      These commands allow you to experiment with hypothetical or
  162. downright ridiculous positions.  The position doesn't even have to be
  163. legal.  Live out your fantasy by giving yourself ten queens versus the
  164. computer's lone king.  Or invent your own type of chess by giving each
  165. side two kings, for example (although in this case the computer might
  166. get confused trying to determine a checkmate).
  167.      You can also set up a problem for the computer to solve, such as
  168. the mate-in-two problems published in many newspapers.  To solve a
  169. make-in-two problem, press C to clear the board, set up the position,
  170. press 4 to select level 4, and press M to start the computer thinking.
  171. After several minutes of deep thought, the computer will make a move
  172. (the solution) and announce checkmate.  The only mate-in-two problems
  173. that the computer cannot solve are those which involve castling, en
  174. passant captures, or pawn promotion.
  175.      The computer never castles or captures en passant because, due to
  176. their complexity, these moves are not included in its thinking routine.
  177. But you can make these special moves.  To castle, move the king two
  178. squares to the left or right.  The rook moves automatically.  To capture
  179. en passant, move your pawn diagonally to the proper square.  The
  180. opponent's pawn is removed automatically.  Remember, the computer
  181. doesn't check for illegal moves involving castling or en passant
  182. captures, so if you're a beginner, you should familiarize yourself with
  183. the rules on these special moves.
  184.      When a pawn reaches the opposite side of the board, it's
  185. automatically promoted to a queen.  In the rare event that you would
  186. rather promote to a knight, bishop, or rook, you can easily make the
  187. change by positioning the cursor over the new queen and pressing N, B,
  188. or R with Shift or Ctrl.  Note, however, that underpromotions are not
  189. stored in the move list.
  190.      If you want to stop the present game and continue later, you can
  191. save the game on disk (in drive A) by pressing the S key.  You'll see
  192. the prompt Save:.  Type in a filename for your game and press Enter.
  193. The filename can be up to eight characters long.  Don't type an
  194. extender; .CHS is added automatically.  If a file on the disk already
  195. has the same name, it will be replaced.
  196.      To load a previously saved game, press the L key.  Answer the
  197. Load: prompt with the filename and press Enter.  (Don't type the .CHS
  198. extender.)  The L command restores the game exactly as it was when it
  199. was saved.  Not only the position is restored, but also the move list
  200. and even the position of the cursor.
  201.      If the computer is unable to save or load a game, an error number
  202. is displayed.  See Appendix A of the BASIC Reference Manual for a
  203. description of the error.
  204.      Besides allowing you to continue a game at a later time, the S and
  205. L commands can be used to create a library of your best games.  To do
  206. this, press N or I just before saving.  The game will come up in the
  207. starting position when loaded and can be replayed using the F command.
  208.  
  209. CHESS Command Summary
  210. ---------------------
  211. B             Move backward
  212. C             Clear board
  213. F             Move forward
  214. I             New game (inverted)
  215. L             Load game
  216. M             Computer's move
  217. N             New game
  218. P             Print move list
  219. S             Save game
  220. T             Two players
  221. 1-5           Level
  222. Cursor Keys   Move cursor
  223. Enter         Your move
  224. Space Bar     Remove piece
  225. Shift-P       Lower player's pawn
  226. Shift-N       Lower player's knight
  227. Shift-B       Lower player's bishop
  228. Shift-R       Lower player's rook
  229. Shift-Q       Lower player's queen
  230. Shift-K       Lower player's king
  231. Ctrl-P        Upper player's pawn
  232. Ctrl-N        Upper player's knight
  233. Ctrl-B        Upper player's bishop
  234. Ctrl-R        Upper player's rook
  235. Ctrl-Q        Upper player's queen
  236. Ctrl-K        Upper player's king
  237.